home *** CD-ROM | disk | FTP | other *** search
- Path: nntp1.best.com!usenet
- From: DrLaz@aol.com
- Newsgroups: comp.lang.c++,comp.os.ms-windows.programmer.tools.mfc
- Subject: Best way to resume from an exception
- Date: Mon, 11 Mar 1996 18:14:16 GMT
- Organization: Best Internet Communications
- Message-ID: <4i1qr9$g15@nntp1.best.com>
- Reply-To: DrLaz@aol.com
- NNTP-Posting-Host: advisor.vip.best.com
- X-Newsreader: Forte Free Agent 1.0.82
-
- OK, wizards, what do you-all think is the best way to pick up after an
- exception from the point at which it was thrown? For example--
-
- try{
- // code that does a lot of 'new', much of it in MSVC library code
- // (so I can't check every new myself)
- }
- catch(CMemoryException* e){
- // delete some purgeable stuff that can be re-fetched later
- // oops, now what!
- }
- I could even try a 'goto' to the try block, since I in this case the
- variables are initialized before the try, but I' sure someone has
- thought about this deeply.
-
- (Doesn't Object Pascal simply have a 'resume' keyword?)
-
- andy
-
- (e-mail copies of any reply appreciated)
-
-